﻿using System;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.UI;
using YArchitech.Controls;
using YArchitech.Revit;

namespace YArchitech.Plumbing
{
	[Transaction(TransactionMode.Manual)]
	[Regeneration(RegenerationOption.Manual)]
	public class HotMaxUsedWaterCal : HYNoTranExternalCommand
	{
		public override Result HYExecute()
		{
			HotMaxUsedWater hotMaxUsedWater = new HotMaxUsedWater();
			try
			{
				hotMaxUsedWater.ShowDialog();
			}
			catch (Exception ex)
			{
				YJKMessageBox.Show(ex.ToString());
			}
			return Autodesk.Revit.UI.Result.Succeeded;
		}

		public override void FilterProcess()
		{
			base.FilterViewType.Add(1);
			base.FilterViewType.Add(2);
			base.FilterViewType.Add(4);
			base.FilterProcess();
		}
	}
}
